Filtering on Object Level

I am trying to filter a module to give me all objects that have Object Level to 1 only however since Object Level is a derived attribute I cannot seem to get my filter to work properly. I was attempting to do something like the following:

Filter f = column("Object Level", "1", true, false)
set f
filtering on

However, in order for this to work I have to insert Object Level on the view that I have created previously and I am trying to avoid this. Has anyone ever done this type of filtering before. Any suggestions would be greatly appreciated.

I am also trying to avoid the standard for o in m() {if (level(o)==1)} type loops since they are too lengthy on my gazillion DOORS objects

Thanks
PatrickGuay - Tue Oct 11 13:57:40 EDT 2011

Re: Filtering on Object Level
OurGuest - Tue Oct 11 16:54:06 EDT 2011

Why not just set the level displayed to show only level 1?

Re: Filtering on Object Level
kbmurphy - Tue Oct 11 17:00:19 EDT 2011

OurGuest - Tue Oct 11 16:54:06 EDT 2011
Why not just set the level displayed to show only level 1?

Object o
Module m = current
outlining on
level 1
int i = 0
 
for o in m do {
   i++
}
outlining off
level 0

Re: Filtering on Object Level
llandale - Tue Oct 11 18:21:42 EDT 2011

Perhaps create an attrDXL "dxlLevel" that displays the level of the object: obj.attrDXLName = level(obj) "", then filter on THAT attribute.

The other posters suggesting Display Level = 1 seems very reasonable.